//: holding/UniqueWordsAlphabetic.java
package com.dozy.learn.holding;

// Producing an alphabetic listing.
import java.util.*;
import net.mindview.util.*;

public class UniqueWordsAlphabetic {
    public static void main(String[] args) {
        Set<String> words = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);
        words.addAll(new TextFile("src\\com\\dozy\\learn\\holding\\SetOperations.java", "\\W+"));
        System.out.println(words);
    }
} /*
   * Output: [A, add, addAll, added, args, B, C, class, Collections, contains,
   * containsAll, D, E, F, false, from, G, H, HashSet, holding, I, import, in,
   * J, java, K, L, M, main, mindview, N, net, new, Output, Print, public,
   * remove, removeAll, removed, Set, set1, set2, SetOperations, split, static,
   * String, to, true, util, void, X, Y, Z]
   */// :~
